package com.ce.tag;

import javax.servlet.jsp.JspException;

public class HtmlColSpanTag extends HtmlBaseTag{
	private static final long serialVersionUID = 1L;
	
	private String text,from,to;
	private boolean disabled;

	public int doStartTag() throws JspException {
		HtmlTableTag t = (HtmlTableTag) this.getParent();
		if(!disabled){
			t.colspans.add(t.new ColSpan(text,from,to,getHtmlAttrString()));
		}
		return SKIP_BODY;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

}
